local main = require "packages/new_hegcomplements/main"
local olheg = require "packages/new_hegcomplements/olheg"
local mobileheg = require "packages/new_hegcomplements/mobileheg"
local tyheg = require "packages/new_hegcomplements/tyheg"
local overseaheg = require "packages/new_hegcomplements/overseaheg"
local piracy = require "packages/new_hegcomplements/piracy"
local jinheg = require "packages/new_hegcomplements/jinheg"

local newheg = Fk.game_modes["ex_heg_mode"]
if newheg then
  table.insertTable(newheg.whitelist, {"main"})
  table.insertTable(newheg.whitelist, {"olheg"})
  table.insertTable(newheg.whitelist, {"mobileheg"})
  table.insertTable(newheg.whitelist, {"tyheg"})
  table.insertTable(newheg.whitelist, {"overseaheg"})
  table.insertTable(newheg.whitelist, {"piracy"})
  table.insertTable(newheg.whitelist, {"jinheg"})
end
local mulheg = Fk.game_modes["mul_heg_mode"]
if newheg then
  table.insertTable(mulheg.whitelist, {"main"})
  table.insertTable(mulheg.whitelist, {"olheg"})
  table.insertTable(mulheg.whitelist, {"mobileheg"})
  table.insertTable(mulheg.whitelist, {"tyheg"})
  table.insertTable(mulheg.whitelist, {"overseaheg"})
  table.insertTable(mulheg.whitelist, {"piracy"})
  table.insertTable(mulheg.whitelist, {"jinheg"})
end

return {
  main,
  olheg,
  mobileheg,
  tyheg,
  overseaheg,
  piracy,
  jinheg
}
